import React from "react";
import {ActivityIndicator} from "antd-mobile";

export default ({toast, inline, text}) => {
  if (toast) {
    return <ActivityIndicator toast text={text || '正在加载1'} toast/>
  }
  if (inline) {
    return <div className="flex-wrp flex-center ptb20">
      <ActivityIndicator toast text={text || '正在加载2'}/>
    </div>
  }
  return <ActivityIndicator toast text={text || '正在加载3'}/>
}